package com.gzhryc.net_marketing.api.protocol.config;

import com.gzhryc.common.api.SecurityResponse;

import java.io.Serializable;
import java.util.List;

public class LogisticsCompanyListResponse extends SecurityResponse<LogisticsCompanyListResponse.Body> {

    private static final long serialVersionUID = 1L;

    public LogisticsCompanyListResponse() {
        this.body = new Body();
    }

    public LogisticsCompanyListResponse(Integer code, String msg) {
        super(code,msg);
        this.body = new Body();
    }

    public static class Body implements Serializable {

        private static final long serialVersionUID = 1L;

        private Long total;
        private List<CompanyItem> items;

        public Long getTotal() {
            return total;
        }

        public void setTotal(Long total) {
            this.total = total;
        }

        public List<CompanyItem> getItems() {
            return items;
        }

        public void setItems(List<CompanyItem> items) {
            this.items = items;
        }
    }

    public static class CompanyItem {

        private String id;
        private String name;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
